import request from '@/utils/request'

//获取订单列表
export function orderList(data) {
    return request({
        url: '/api/v1/admin/orders',
        method: 'get',
        params: data,
    })
}

//修改订单商品信息
export function reOrder(id, data) {
    return request({
        url: "/api/v1/admin/orders/" + id,
        method: 'put',
        data,
    })
}

//删除订单商品信息
export function deOrder(id) {
    return request({
        url: '/api/v1/admin/orders/' + id,
        method: 'delete',
    })
}